package com.example.zsydb.service;
import com.example.zsydb.entity.GtlyResult;
import com.example.zsydb.repository.CustomGtlyResultRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GtlyService {

    private final CustomGtlyResultRepository customRepository;

    @Autowired
    public GtlyService(CustomGtlyResultRepository customRepository) {
        this.customRepository = customRepository;
    }

    public List<GtlyResult> queryResults(String jh, String km, String csrq, String dm) {
        return customRepository.findByCriteria(jh, km, csrq, dm);
    }
}